package cn.itcast.demo4;

public class Test {
    public static void main(String[] args) {
        Dog d=new Dog();
        d.eat();
        d.watch();

        Pig p=new Pig();
        p.eat();
        p.snore();
    }
}
